package com.yanqu.road.entity.config.parergon;

import com.yanqu.road.utils.property.Property;
import com.yanqu.road.utils.property.PropertyHelper;

public class UnionParergonConfig {
    private int id;
    private String name;
    private int type;
    private int quality;
    private int progress;
    private int managePerProgress;
    private String rewards;
    private int managePar;
    private int discountShopPro;

    private Property reward;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getQuality() {
        return quality;
    }

    public void setQuality(int quality) {
        this.quality = quality;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getManagePerProgress() {
        return managePerProgress;
    }

    public void setManagePerProgress(int managePerProgress) {
        this.managePerProgress = managePerProgress;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public String getRewards() {
        return rewards;
    }

    public void setRewards(String rewards) {
        this.rewards = rewards;
        this.reward = PropertyHelper.parseStringToProperty(rewards);
    }

    public int getManagePar() {
        return managePar;
    }

    public void setManagePar(int managePar) {
        this.managePar = managePar;
    }

    public int getDiscountShopPro() {
        return discountShopPro;
    }

    public void setDiscountShopPro(int discountShopPro) {
        this.discountShopPro = discountShopPro;
    }
}
